﻿using DataAccess;
using PersonalSite.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace PersonalSite.Controllers
{
    public class PartialController : Controller
    {
        // GET: Partial
        public ActionResult Index()
        {
            return View();
        }

        [ChildActionOnly]
        public ActionResult Menu()
        {
            ArticleRepository rep = new ArticleRepository();
            var articles = rep.GetAllArticles();
            return PartialView(articles);
        }
    }
}